package com.xc.file.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>文件夹返回参数类</p>
 *
 * @author xc
 * @version v1.0.0
 */
@Data
public class FolderDto {

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "文件夹名称")
    private String name;

    @ApiModelProperty(value = "节点")
    private String node;

    @ApiModelProperty(value = "父节点")
    private String parentNode;

    @ApiModelProperty(value = "用户主键")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "文件夹路径")
    private String path;

}
